package org.example.service.impl;

import org.example.domain.Menu;
import org.example.mapper.MenuMapper;
import org.example.service.IMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wen'ge
 * @since 2021-02-26
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements IMenuService {
    //在这里如果要调用MenuMapper，此时将不用再手动注入，原因：继承的父类中，已经 帮你@Autowired了

    @Override
    public List<Menu> findAll() {
        return baseMapper.findAll();
    }
}
